package com.atguigu.crowd.service.impl;

import com.atguigu.crowd.entity.po.HardwareProtocol;
import com.atguigu.crowd.entity.po.HardwareProtocolExample;
import com.atguigu.crowd.mapper.HardwareProtocolMapper;
import com.atguigu.crowd.service.api.HardwareProtocolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class HardwareProtocolImpl implements HardwareProtocolService {

    @Autowired
    private HardwareProtocolMapper hardwareProtocolMapper;

    public List<HardwareProtocol> getAllHardwareProtocol() {
        HardwareProtocolExample hardwareProtocolExample = new HardwareProtocolExample();
        return hardwareProtocolMapper.selectByExample(hardwareProtocolExample);
    }
}
